package com.zghhost.codedemo.util;

/**
 * @author guohua.zhang@zhaopin.com.cn
 * @Date 2019/1/16 11:27
 */
public class RuntimeUtil {
    public static String getTotalMemory(){
        return ByteUtil.toM(Runtime.getRuntime().totalMemory());
    }

    public static String getMaxMemory(){
        return ByteUtil.toM(Runtime.getRuntime().maxMemory());
    }

    public static String getFreeMemory(){
        return ByteUtil.toM(Runtime.getRuntime().freeMemory());
    }
}
